package com.sq.partner.manager.dao;

import java.util.Map;

import com.sq.partner.manager.mybatis.model.FacadeAppApplicant;

/**
 * 投保人Dao接口
 * @author zhouxiuxiu
 *
 */
public interface FacadeAppApplicantDao extends BaseDao {

    /**
     * 插入投保人信息表
     * 
     * @param facadeAppApplicant
     */
    public void insertFacadeAppApplicant(FacadeAppApplicant facadeAppApplicant)
            throws Exception;

    /**
     * 更新投保人信息表
     * 
     * @param facadeAppApplicant
     */
    public void updateFacadeAppApplicantNotNull(
            FacadeAppApplicant facadeAppApplicant) throws Exception;

    /**
     * 得到一个新的投保人编码
     * 
     * @return
     * @throws Exception
     */
    public String queryNewTbrClientNo() throws Exception;
    
    /**
     * 查询投保人信息
     * 
     * @param map
     * @return
     * @throws Exception
     */
    public FacadeAppApplicant selectFacadeAppApplicantByMap(Map<String, String> map)
            throws Exception;
    
    public void deleteAppApplicantByAppno(String appNo) throws Exception;

}
